package points

import (
	"ferry/models/base"
)

/*
  @Author : lanyulei
*/

// 用户积分总表
type UserPoints struct {
	base.Model
	UserId      int `gorm:"column:user_id; type:int(11); not null; index" json:"user_id" form:"user_id"`           // 用户ID
	TotalPoints int `gorm:"column:total_points; type:int(11); default:0; not null" json:"total_points" form:"total_points"` // 总积分
}

func (UserPoints) TableName() string {
	return "p_user_points"
}